﻿<Window x:Class="CharacterCreation.Views.ChildWindows.PopupWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="" Height="600" Width="800" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" 
        ShowInTaskbar="False" Icon="/CharacterCreation;component/Images/ctron_eigenschappen_32.png" Topmost="True" BorderThickness="0" UseLayoutRounding="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Background="AliceBlue" BorderBrush="LightGray" BorderThickness="0,0,0,1">
            <TextBlock Text="{Binding HeaderText}" FontSize="24" Foreground="#FF35496A" FontWeight="Bold" FontStretch="ExtraExpanded" Margin="10" 
                       VerticalAlignment="Center"/>
        </Border>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>

            <ListBox Grid.Column="0" ItemsSource="{Binding IPopupViews}" SelectedItem="{Binding SelectedPopupView, Mode=TwoWay}" x:Name="lst" Width="60"
                     Visibility="{Binding PagesVisibility}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Image Margin="5" Source="{Binding ViewImage}" HorizontalAlignment="Center" VerticalAlignment="Center" Height="32" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <ContentControl Content="{Binding SelectedPopupView}" Padding="5" Grid.Column="1"/>
        </Grid>

        <Border Background="AliceBlue" Grid.Row="2" BorderBrush="LightGray" BorderThickness="0,1,0,0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
                <Button Content="OK" Click="ButtonOK_Click" Margin="5" Height="24" Width="75" />
                <Button Content="Cancel" Click="ButtonCancel_Click" Margin="5" Height="24" Width="75" />
            </StackPanel>
        </Border>
    </Grid>
</Window>
